<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>懒人家居</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.detailName
{
     background-color:#CCCCCC;
     font-weight:bold; 
     line-height: 25px;
     border: 0;
     clear: both;
     display: block;
     float: none;
     margin: 0;
     padding: 0;
     padding-left:15px;
     overflow: hidden;
}
.detailText{
	margin: 0;
	width:651px;
	height:360px;
	border:1px solid #CCCCCC;
	overflow: auto;
}
.detailText img{
	width:auto;
	height:auto;
}

</style>
</head>

<body style="background-color:#F5F2ED">
<div class="BigImg">
  <h1 >详细信息</h1>
  <div class="imgBg"><img src="download.action?id=<s:property value='sofa.id'/>" /></div>
  <div>
  <ul class="imgMassage">
  <li>品名：<s:property value="sofa.name"/></li>
  <li>价格：<s:property value="sofa.prize"/></li>
  <li>运费：<s:property value="sofa.yunfei"/></li>
  <li>尺寸：<s:property value="sofa.size"/></li>
  <li>面料花式：<s:property value="sofa.cloth"/></li>
  <li>推荐度：
  <s:bean name="org.apache.struts2.util.Counter" id="counter">
  <s:param name="first" value="1"/>
  <s:param name="last" value="5"/>
  <s:iterator><s:if test="#counter.current-1<=sofa.recommend"><img src="images/good_ok.png" class="recommend" width="16px" height="16px"/></s:if><s:else><img src="images/good_no.png" class="recommend" width="16px" height="16px"/></s:else></s:iterator>
  </s:bean></li>
  <li>库存：<s:property value="sofa.number"/></li>
  </ul>
  <span class="detailName">详细信息：</span>
  <div class="detailText"><s:property value="sofa.memo" escape="false"/></div>
</div>
</div>
</body>
</html>